home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / gopher / Unix / gateways / techinfo / gophtech / MAINT < prev    next >
Encoding:
Text File  |  1993-03-01  |  3.1 KB  |  89 lines

  1.                               Table of Contents
  2.  
  3.     1. How to test the gateway works
  4.     2. Statistics
  5.     3. The log file
  6.  
  7.  
  8. 1. How to test that the gateway is working
  9.  
  10. Telnet to the host running the gateway at the port number
  11. that you used during installation, and press RETURN.
  12.  
  13. Example:
  14.  
  15. telnet gopher.upenn.edu 70
  16.  
  17. You should see output like this:
  18.  
  19. 0About this Internet Gopher    Goph-TI-Gateway    lam.dccs.upenn.edu    70
  20. 1About PennInfo    M penninfo-srv.upenn.edu 9000 836    lam.dccs.upenn.edu    70
  21. 1About the University of Pennsylvania    M penninfo-srv.upenn.edu 9000 852    lam.dccs.upenn.edu    70
  22. 1What's New on PennInfo    M penninfo-srv.upenn.edu 9000 1627    lam.dccs.upenn.edu    70
  23. 7Keyword search all nodes at this TechInfo server    K penninfo-srv.upenn.edu 9000     lam.dccs.upenn.edu    70
  24. 7Keyword search the items in this menu    K penninfo-srv.upenn.edu 9000 0    lam.dccs.upenn.edu    70
  25. 1World Wide TechInfo    worldwide-techinfo    lam.dccs.upenn.edu    70
  26. 1World Wide Gopher    1/Other Gopher and Information Servers    gopher.tc.umn.edu    70
  27.  
  28. .
  29. Connection closed by foreign host.
  30.  
  31. Specifically, look for these things
  32.     1) "About this Internet Gopher"
  33.     2) the main menu of the local Techinfo server
  34.     3) keyword search items
  35.     4) World wide techinfo
  36.     5) World wide gopher
  37.     6) the last line has just a period on it
  38.  
  39. If you don't get this output, read the DEBUGLOG file to see
  40. if there's a message that indicates the problem.  If the
  41. DEBUGLOG doesn't exist, then create an empty one, make it
  42. owned by DAEMON, and try the test again.  If the file is
  43. still empty, then check the spelling of the full filename
  44. of the gateway executable in /etc/inetd.conf.  If that
  45. doesn't show what the problem is, check the inetd.conf file
  46. to make sure that you've got 3 items after the full
  47. filename of the executable.
  48.  
  49. If all of the items show up except for #3 & #4, then the
  50. gateway was unable to contact the LOCALTI_SERVER at the
  51. LOCALTI_PORT and get the main menu.  Check the spelling of
  52. the domain name of the LOCALTI_SERVER.  Make sure that the
  53. TechInfo server is up.
  54.  
  55. If it still doesn't work, send me email...
  56.  
  57.  
  58. 2. Statistics (optional)
  59.  
  60. The logfile contains useful information.  Once every month
  61. or so, it'd be nice to have a summary of the usage of the
  62. gateway.
  63.  
  64. I've written a csh script, stats, which computes the total
  65. number of connections, and the number of UPENN and
  66. non-UPENN connections.
  67.  
  68. Install the "stats" script somewhere, say
  69. /usr/local/bin/gopher-ti-gw-stats, and run it to make sure
  70. it works.
  71.  
  72. Once it works, add a line to crontab.  For example:
  73. 0 0 1 * * /usr/local/bin/gopher-ti-gw-stats /usr/local/logs/gopher-techinfo-gw | /usr/ucb/mail -s "Gopher-Techinfo GW Stats" root
  74. #
  75. # send the stats on the first of the month to root
  76. #
  77.  
  78.  
  79. 3. The DEBUGLOG file needs to be erased on a regular basis.
  80.    I wrote a script, called cleanuplog, which mails the log
  81.    file to someone who cares if there are FatalErrors in
  82.    the log, and then removes it.
  83.  
  84.    Running this script once a month is probably often
  85.    enough.  Install the script.  Since the script is
  86.    normally silent, you should check it once in a while to
  87.    make sure that it actually ran.
  88.  
  89.